package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;

/**
 * 倒计时响应
 * 发送给房间所有玩家来提示所进行的步骤和剩余的时间
 *
 * @author StanWind
 */
public class TimeDownResponse extends Serializer {
    private int step;
    private int time;

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    @Override
    protected void read() {

    }

    @Override
    protected void write() {
        writeByte((byte) getStep());
        writeByte((byte) getTime());
    }
}
